import 'package:flutter/material.dart';
import '../../../utils/event_bus.dart';
import '../../../config.dart';

class ToolButtonData {
  final String title;
  final String imgUrl;
  final Function onTapHandle;
  final IconData? suffix;

  ToolButtonData(this.title, this.imgUrl, this.onTapHandle, {this.suffix});
}

final List<ToolButtonData> ButtonDataList = [
  ToolButtonData('整理书架', '', (context) {
    eventBus.emit(Config.BottomNavigationBar, Config.BottomNavigationBarBottom);
    Navigator.of(context).pop();
  }, suffix: Icons.manage_accounts),
  ToolButtonData('切换视图', '', () {}, suffix: Icons.change_circle),
  ToolButtonData('WIFI传书', '', () {}, suffix: Icons.wifi),
  ToolButtonData('上传进度', '', () {}, suffix: Icons.upload),
  ToolButtonData('下载进度', '', () {}, suffix: Icons.download),
  ToolButtonData('TXT下载', '', () {}, suffix: Icons.download_for_offline),
];
